Software Development
Object Serialization and JSON Parsing in Java
Final Exam: Javanista
Serialization in Java: Getting Started with Object Serialization
Serialization in Java: Using JSON in Java for Serialization & Parsing
Serialization in Java: Using JSON Simple for Serialization & Parsing

Final Exam: Javanista

Course Number:
it_fejnj_03_enus
Lesson Objectives

Final Exam: Javanista

  • allow end-users to delete rows from a database table through the UI of your JSP app
  • configure JDBC objects to connect to a database
  • connect to a database from a RESTful Java application
  • consume a REST API by sending a GET request and processing its response
  • create a database schema and table and load it with data
  • create a Maven project which uses the MySQL connector
  • create and configure a web service project that works with Java objects
  • define a web service method that responds to a request by returning text
  • delete data on a database by processing a DELETE request
  • deploy and test the connectivity from your JSP app to a database and ensure that queried data is displayed correctly
  • deploy your SOAP-based application as a WAR file to a Tomcat server
  • describe how the connected nature of a JdbcRowSet can be used to get any updates to the underlying data
  • describe the behavior of a batch execution where some queries are invalid
  • describe the different methods available to access the data and metadata in an HttpResponse instance
  • describe the role of a HEAD request to obtain information about a resource
  • describe the similarities between a JdbcRowSet and a CachedRowSet
  • describe the WSDL file for a web service and recognize its properties
  • download and set up the Apache Maven build automation tool
  • execute SELECT queries against a database using a JDBC Statement
  • explore exceptions that arise when parsing json data
  • handle incoming HTTP requests
  • implement a join operation in a Java program using a JDBC JoinRowSet
  • install and configure Apache Tomcat server
  • install Maven and use it to create a web service app
  • join multiple tables involving different join fields using a JoinRowSet
  • perform a batch execution of parameterized queries using a PreparedStatement
  • read and write json data using org.json
  • recall how the JSON format structures primitives, entities, and arrays
  • recall the role of the serialVersionUID field
  • recognize some of the important settings of a JdbcRowSet and what their default values are
  • recognize the differences between a JdbcRowSet and a CachedRowSet
  • recognize the power of the WebServlet annotation when it comes to mapping servlets to URL endpoints
  • recognize the types of join operations which are supported by a JoinRowSet implementation
  • recognize the various fields available in response to an HTTP GET request
  • serialize objects with nested object references
  • set an upper limit on the amount of time you can wait for a response to an HTTP request
  • set up a JSP page to direct an end-user to a specific error page in the event of an exception being thrown
  • set up a Maven project to build the HTTP client application
  • set up an Apache Maven project and specify dependencies
  • set up Apache Tomcat web server that can be used to serve a JSP application
  • set up a web application with Maven and configure a POM file for a RESTful app
  • set up a web method that performs a delete operation in a database
  • set up MySQL server on your machine
  • set up the environment to perform hands-on coding
  • set up your machine with a MySQL server and a client application to interact with it
  • tokenize strings using the string tokener
  • unpack and view the contents of the WAR archive for a JSP application and describe its structure and properties
  • use Apache Maven to build a stub web application
  • use a Statement object to run a series of INSERT queries as a batch
  • use a web.xml file to define a common error page for an entire JSP application
  • use a web.xml file to define a common error page for the entire JSP application
  • use JDBC to connect to and query a SQL database from a JSP app
  • use json-simple to read in and write out JSON data
  • use the HttpClient class to send a GET request and process the response, which is returned
  • use the HttpURLConnection to configure and send an HTTP GET request
  • use the Jersey framework to define a method that responds to GET requests
  • use the org.json library for JSON parsing
  • use the transient modifier to omit fields from serialization
  • verify the behavior of a web service app deployed to a Tomcat server
  • write json data using org.json

Overview/Description

Final Exam: Javanista will test your knowledge and application of the topics presented throughout the Javanista track of the Skillsoft Aspire Java Novice to Javanista Journey.



Target

Prerequisites: none

Serialization in Java: Getting Started with Object Serialization

Course Number:
it_jpjpjadj_01_enus
Lesson Objectives

Serialization in Java: Getting Started with Object Serialization

  • discover the key concepts covered in this course
  • set up the environment to perform hands-on coding
  • serialize objects to byte streams and deserialize byte streams to objects
  • serialize and deserialize custom, user-defined objects
  • recall the role of the serialVersionUID field
  • outline backward compatible and non-backward compatible changes
  • use the transient modifier to omit fields from serialization
  • serialize objects with nested object references
  • send byte stream data over socket connections
  • use the externalizable interface for control over serialization
  • summarize the key concepts covered in this course

Overview/Description
Serialization in Java allows the conversion of the internal state of an object to a byte stream. On the other hand, deserialization enables the recreation of the original object from the byte stream, thus facilitating data transfer. Learn how to define Java classes that are serializable using this course. Explore the use of the Serializable marker interface and the serialVersionUID, and the Externalizable interface. You'll also learn more about backward compatible and backward-incompatible changes, the use of the transient modifier to mark states that should not be serialized, and the conditions under which Java will serialize objects with nested references. When you are finished with this course, you will have the skills and ability to use serialization and deserialization to work with byte streams, stored to files or transferred over a network.

Target

Prerequisites: none

Serialization in Java: Using JSON in Java for Serialization & Parsing

Course Number:
it_jpjpjadj_03_enus
Lesson Objectives

Serialization in Java: Using JSON in Java for Serialization & Parsing

  • discover the key concepts covered in this course
  • use the org.json library for JSON parsing
  • read and write JSON data using org.json
  • import and export JSON arrays using org.json
  • use the put(), accumulate(), and append() methods to work with arrays
  • tokenize strings using the string tokener
  • serialize custom classes to the JSON format with org.json
  • serialize classes with nested objects with org.json
  • use the @JSONPropertyName and @JSONPropertyIgnore annotations
  • parse comma-delimited strings using the CDL class
  • parse comma-delimited files and records using CDL
  • summarize the key concepts covered in this course

Overview/Description
The JavaScript Object Notation (JSON) format is a widely used data format for serializing the internal state of objects to a structured and human-readable format. Take this course to explore the org.json library, which offers powerful features and constructs for the serialization of Java objects to the JSON format and parsing JSON files and structures. Investigate how JSON in the Java library offers more powerful functionality to work with JSON as compared to the JSON Simple library. You'll also explore the use of different methods to create JSON arrays, discover the nuances of working with each of these methods and how they differ from each other. You will have the skills and the ability to use the powerful features of JSON in the Java library to perform JSON serialization and parsing after finishing this course.

Target

Prerequisites: none

Serialization in Java: Using JSON Simple for Serialization & Parsing

Course Number:
it_jpjpjadj_02_enus
Lesson Objectives

Serialization in Java: Using JSON Simple for Serialization & Parsing

  • discover the key concepts covered in this course
  • recall how the JSON format structures primitives, entities, and arrays
  • set up an Apache Maven project and specify dependencies
  • use JSON-simple to read in and write out JSON data
  • use JSON-simple to read in and write out JSON arrays
  • use JSON-simple to read in and write out complex JSON structures
  • explore exceptions that arise when parsing JSON data
  • parse JSON data using the SAX interface
  • encode JSON data using strings and streams
  • serialize custom classes to the JSON format
  • summarize the key concepts covered in this course

Overview/Description
When building applications, there is often the need to represent objects using a wire protocol that is both structured and human-readable. The JavaScript Object Notation (JSON) format is a popular and widely used data format for this very purpose. Use this course to get familiar with how JSON format is used to represent data. Examine how simple primitives, entities, and arrays are represented in JSON and the use of JSON Simple library to create JSON objects. You'll also learn more about the SAX-based interface, the JSON Simple library, and the JSONAware and JSONStreamAware interfaces. After completing this course, you will have the knowledge to work with JSON data, serialize structures to the JSON format, and parse JSON data to get Java objects.

Target

Prerequisites: none

Close Chat Live